﻿@using WebEntities
@using com.subb.Tools.Pager

@model PagedList<WI_News>

@{
    ViewBag.Title = "行业资讯";
    Layout = "~/Views/Shared/_DefLayout.cshtml";
}

<div class="topadimg"><img src="/Images/banner02.jpg" /></div>
@Html.Action("LeftMenu", new { cataId = ViewBag.CataID })
<div class="subright">
    <div class="pagepath"><a href="/"><img src="/Images/homeicon.jpg" alt="首页" /></a> &gt; <a href="/newsinfo">新闻资讯</a> &gt; <a href="/newsinfo/industry">行业资讯</a></div>
    <div class="midcontent">
        <div class="newsbar">
            <div class="nl1">资讯标题</div>
            <div class="nr1">发布日期</div>
            <div class="cls"></div>
        </div>
        @foreach (var news in Model)
        {
            <div class="nrow">
                <div class="nl1"><a href="/newsinfo/details/@news.NewsID" target="_blank">@news.NewsTitle</a></div>
                <div class="nr1">@((news.PubTime.HasValue ? news.PubTime : news.CreateTime).Value.ToString("yyyy/MM/dd"))</div>
            </div>
        }
        <div class="cls"></div>
        @Html.Pager(Model, new PagerOptions
        {
           PageIndexParameterName = "id",
           CurrentPagerItemWrapperFormatString = "<span class=\"currpage\">{0}</span>", 
                NumericPagerItemWrapperFormatString = "<span class=\"pagenum\">{0}</span>", CssClass = "pager", SeparatorHtml = "" })
    </div>
</div>
<div class="cls"></div>


